package cn.com.db.dao;

import cn.com.db.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface UserDao {
    void createUser(User user);
    Integer getUserNum();
    User getUserByAuthingId(@Param("authing_id")String authingId);
    User getUserById(@Param("id")String id);
    User getUserByOpenId(@Param("openId")String openId);
    void update(User user);
	void addOpenid(User user);
}
